﻿using FluentNHibernate.Mapping;
using Thaire.Investment.Domains.Master;

namespace Thaire.Investment.Repository.Mapping
{
    class GuaranteeTypeMap : ClassMap<GuaranteeType>
    {
        public GuaranteeTypeMap()
        {
            Table("GUARANTEE_TYPE");

            Id(x => x.GuaranteeTypeId, "GUARANTEE_TYPE_ID").GeneratedBy.Identity();
            Map(x => x.GuaranteeTypeNameEn, "GUARANTEE_TYPE_NAME_EN");
            Map(x => x.GuaranteeTypeNameTh, "GUARANTEE_TYPE_NAME_TH");

        }
    }
}
